using System;
using foundation;
public class O1Property : IO1Transfrom
{
    public object exec(object root, object property)
    {
        CodePropertyVO vo = (CodePropertyVO)property;
        var pros = vo.propertys;
        for (int i = 0; i < pros.Length; i++)
        {
            var pro = pros[i];
            root = DataConvert.tryGetValue(root, pro);
            if (null == root)
            {
                return null;
            }
        }
        return root;
    }
}